/* 
 * FunnySport JS
 * @Author  ThanhTV
 * @Email   tranthanhepu@gmail.com
 * @Date    Aug 6, 2013
 */

//Open Left panel
$( '#leftPanel' ).panel( "open" );


//Parse contents and load to list view
$(document).ready(function () {
    
    $.ajax({
        dataType: 'jsonp',
        data: 'page=1',
        jsonp: 'jsonp_callback_listvideos',
        url: 'http://haihuocthethao.com/getVideos.php',
        success: function (data, status) {
          $.each(data, function(i,item){
              console.log("ID = "+item.id);
              console.log("TITLE = "+item.title);
              console.log("TYPE = "+item.type);
          });          
        },
        error:function(jqXHR, textStatus, errorThrown){
            output.text(JSON.stringify(jqXHR));
        }
    });

});


